﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Animation;

namespace JustPlus
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.Width = 512;
            this.Height = 256;
            LoadPlayerPanel();
        }

        /*private void LoadBackground(string bkpath)
        {
            Image backimage = new Image();
            backimage.Source = new BitmapImage(new Uri(bkpath, UriKind.Relative));
            backimage.Opacity = 0.6;
            stackPanel1.Children.Add(backimage);
        }*/

        private void LoadPlayerPanel()
        {
            OperationPanel opearionpanel = new OperationPanel();
            stackPanel2.Children.Add(opearionpanel);
            PlayerPanel playpanel = new PlayerPanel();
            stackPanel3.Children.Add(playpanel);
            /*Storyboard sb = (Storyboard)Resources["HideOperationPanel"];
            sb.Begin();*/
        }

        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ButtonState == MouseButtonState.Pressed && this.Cursor != Cursors.Hand)
            {
                this.DragMove();
            }
        }
    }
}
